package com.eva.admin.biz.cms.article;

import com.eva.admin.dao.cms.CmsArticleMapper;
import com.eva.admin.biz.cms.article.dto.QueryCmsArticleProfileDTO;
import com.eva.admin.biz.cms.article.vo.CmsArticleProfileVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CmsArticleProfileBiz {

    @Resource
    private CmsArticleMapper cmsArticleMapper;

    /**
     * 为文章下拉选择查询概要信息列表
     *
     * @param dto QueryCmsArticleProfileDTO
     * @return List<CmsArticleProfileVO>
     */
    public List<CmsArticleProfileVO> findProfileList4Select (QueryCmsArticleProfileDTO dto) {
        return cmsArticleMapper.selectProfileList4Select(dto);
    }
}
